#!/usr/bin/python3
#-*- coding: utf-8 -*-
# @Time    : 2018/10/16 下午7:52
# @Author  : way
# @Email   : wuaoyi@gmail.com
# @File    : email.py
# @Software: PyCharm


import requests,re
import json

number = []

with open("上海交易所.txt",'r+',encoding="utf-8") as fw:
    for i in fw.readlines():
        number.append(i)
arr = []
static_url = 'http://static.sse.com.cn'

url = "http://query.sse.com.cn/security/stock/queryCompanyStatementNew.do"


while True:
    payload = {'jsonCallBack':'jsonpCallback','isPagination':'true','productId':603533,'keyWord':'','isNew': 1,'reportType2':'','reportType':'ALL','beginDate':'2019-02-15','endDate': '2019-02-15','pageHelp.pageSize': 25,'pageHelp.pageCount': 50,'pageHelp.pageNo': 1,'pageHelp.beginPage': 1,'pageHelp.cacheSize': 1,'pageHelp.endPage': 5}
    wbdata = requests.post(url,params=payload)

    print(wbdata.url)

    data = requests.post(url,data=json.dumps(payload),headers={'Content-Type': 'application/json'})

    data.encoding = 'utf-8'

    p_json = data.json()